import Vue from 'vue';

// 
Vue.directive('client-height',{
    inserted:(el,binding)=>{
        let height = binding.value || document.documentElement.clientHeight;
        el.style.height = height + 'px'
        window.addEventListener('resize',function(){
         let height = binding.value || document.documentElement.clientHeight;
         el.style.height = height + 'px'
        })
    }
})